package com.designpatternspart2.behavioraldesignpatterns.iteratorpattern;

/**
 *
 * @author Lance
 */
public class Item
{

    private String name;
    private float price;

    public Item(String name, float price)
    {
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString()
    {
        return getName() + " : $" + getPrice();
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public float getPrice()
    {
        return price;
    }

    public void setPrice(float price)
    {
        this.price = price;
    }
}
